<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>InfIpAddress</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.0">
<link rel="home" href="index.html" title="libinfinity-0.4 Reference Manual">
<link rel="up" href="ch02.html" title="Common libinfinity API">
<link rel="prev" href="InfLocalPublisher.html" title="InfLocalPublisher">
<link rel="next" href="InfTcpConnection.html" title="InfTcpConnection">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="InfLocalPublisher.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch02.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">libinfinity-0.4 Reference Manual</th>
<td><a accesskey="n" href="InfTcpConnection.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#libinfinity-0.4-InfIpAddress.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#libinfinity-0.4-InfIpAddress.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry" title="InfIpAddress">
<a name="libinfinity-0.4-InfIpAddress"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libinfinity-0.4-InfIpAddress.top_of_page"></a>InfIpAddress</span></h2>
<p>InfIpAddress — IPv4 and IPv6 addresses</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1" title="Stability Level">
<a name="libinfinity-0.4-InfIpAddress.stability-level"></a><h2>Stability Level</h2>
Unstable, unless otherwise indicated
</div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="libinfinity-0.4-InfIpAddress.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;libinfinity/common/inf-ip-address.h&gt;

                    <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress">InfIpAddress</a>;
enum                <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddressFamily" title="enum InfIpAddressFamily">InfIpAddressFamily</a>;
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-new-raw4" title="inf_ip_address_new_raw4 ()">inf_ip_address_new_raw4</a>             (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> address</code></em>);
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-new-loopback4" title="inf_ip_address_new_loopback4 ()">inf_ip_address_new_loopback4</a>        (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-new-raw6" title="inf_ip_address_new_raw6 ()">inf_ip_address_new_raw6</a>             (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> address[16]</code></em>);
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-new-loopback6" title="inf_ip_address_new_loopback6 ()">inf_ip_address_new_loopback6</a>        (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-new-from-string" title="inf_ip_address_new_from_string ()">inf_ip_address_new_from_string</a>      (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *str</code></em>);
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-copy" title="inf_ip_address_copy ()">inf_ip_address_copy</a>                 (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-free" title="inf_ip_address_free ()">inf_ip_address_free</a>                 (<em class="parameter"><code><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddressFamily" title="enum InfIpAddressFamily"><span class="returnvalue">InfIpAddressFamily</span></a>  <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-get-family" title="inf_ip_address_get_family ()">inf_ip_address_get_family</a>           (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="returnvalue">gconstpointer</span></a>       <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-get-raw" title="inf_ip_address_get_raw ()">inf_ip_address_get_raw</a>              (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-to-string" title="inf_ip_address_to_string ()">inf_ip_address_to_string</a>            (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);
<a href="/usr/share/gtk-doc/html/gnutls/gnutls-crypto.html#int"><span class="returnvalue">int</span></a>                 <a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-collate" title="inf_ip_address_collate ()">inf_ip_address_collate</a>              (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address1</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address2</code></em>);
</pre>
</div>
<div class="refsect1" title="Description">
<a name="libinfinity-0.4-InfIpAddress.description"></a><h2>Description</h2>
<p>
A <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> represents an IPv4 or an IPv6 network address. Use
<a class="link" href="libinfinity-0.4-InfIpAddress.html#inf-ip-address-get-family" title="inf_ip_address_get_family ()"><code class="function">inf_ip_address_get_family()</code></a> to find out the type of a specific address.
</p>
</div>
<div class="refsect1" title="Details">
<a name="libinfinity-0.4-InfIpAddress.details"></a><h2>Details</h2>
<div class="refsect2" title="InfIpAddress">
<a name="InfIpAddress"></a><h3>InfIpAddress</h3>
<pre class="programlisting">typedef struct _InfIpAddress InfIpAddress;</pre>
<p>
<a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> is an opaque data type. You should only access it
via the public API functions.
</p>
</div>
<hr>
<div class="refsect2" title="enum InfIpAddressFamily">
<a name="InfIpAddressFamily"></a><h3>enum InfIpAddressFamily</h3>
<pre class="programlisting">typedef enum _InfIpAddressFamily {
  INF_IP_ADDRESS_IPV4,
  INF_IP_ADDRESS_IPV6
} InfIpAddressFamily;
</pre>
<p>
This enumeration specifies different types of IP addresses.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><a name="INF-IP-ADDRESS-IPV4:CAPS"></a><span class="term"><code class="literal">INF_IP_ADDRESS_IPV4</code></span></p></td>
<td>This specifies an IPv4 address.
</td>
</tr>
<tr>
<td><p><a name="INF-IP-ADDRESS-IPV6:CAPS"></a><span class="term"><code class="literal">INF_IP_ADDRESS_IPV6</code></span></p></td>
<td>This specifies an IPv6 address.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_new_raw4 ()">
<a name="inf-ip-address-new-raw4"></a><h3>inf_ip_address_new_raw4 ()</h3>
<pre class="programlisting"><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      inf_ip_address_new_raw4             (<em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> address</code></em>);</pre>
<p>
Creates a new IPv4 address.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>An IPv4 address in network byte order.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_new_loopback4 ()">
<a name="inf-ip-address-new-loopback4"></a><h3>inf_ip_address_new_loopback4 ()</h3>
<pre class="programlisting"><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      inf_ip_address_new_loopback4        (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new IPv4 address that contains the local host's IP address
("127.0.0.1").
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_new_raw6 ()">
<a name="inf-ip-address-new-raw6"></a><h3>inf_ip_address_new_raw6 ()</h3>
<pre class="programlisting"><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      inf_ip_address_new_raw6             (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> address[16]</code></em>);</pre>
<p>
Creates a new IPv6 address.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>An IPv6 address in network bype order.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_new_loopback6 ()">
<a name="inf-ip-address-new-loopback6"></a><h3>inf_ip_address_new_loopback6 ()</h3>
<pre class="programlisting"><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      inf_ip_address_new_loopback6        (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new IPv6 address that contains the local host's IP address
("::1").
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_new_from_string ()">
<a name="inf-ip-address-new-from-string"></a><h3>inf_ip_address_new_from_string ()</h3>
<pre class="programlisting"><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      inf_ip_address_new_from_string      (<em class="parameter"><code>const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *str</code></em>);</pre>
<p>
Creates a new IP address (either IPv4 or IPv6) from the given string.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>str</code></em> :</span></p></td>
<td>A string containing an IPv4 or IPv6 address in standard dots
notation.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_copy ()">
<a name="inf-ip-address-copy"></a><h3>inf_ip_address_copy ()</h3>
<pre class="programlisting"><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="returnvalue">InfIpAddress</span></a> *      inf_ip_address_copy                 (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);</pre>
<p>
Creates a new <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> that contains the same address as <em class="parameter"><code>address</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>A <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_free ()">
<a name="inf-ip-address-free"></a><h3>inf_ip_address_free ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                inf_ip_address_free                 (<em class="parameter"><code><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);</pre>
<p>
Frees <em class="parameter"><code>address</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>A <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_get_family ()">
<a name="inf-ip-address-get-family"></a><h3>inf_ip_address_get_family ()</h3>
<pre class="programlisting"><a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddressFamily" title="enum InfIpAddressFamily"><span class="returnvalue">InfIpAddressFamily</span></a>  inf_ip_address_get_family           (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);</pre>
<p>
Returns the address family of <em class="parameter"><code>address</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>A <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddressFamily" title="enum InfIpAddressFamily"><span class="type">InfIpAddressFamily</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_get_raw ()">
<a name="inf-ip-address-get-raw"></a><h3>inf_ip_address_get_raw ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gconstpointer"><span class="returnvalue">gconstpointer</span></a>       inf_ip_address_get_raw              (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);</pre>
<p>
Returns either 32 bit (IPv4) or 128 bit (IPv6) raw address data in host
byte order of <em class="parameter"><code>address</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>A <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> The raw address.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_to_string ()">
<a name="inf-ip-address-to-string"></a><h3>inf_ip_address_to_string ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *             inf_ip_address_to_string            (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address</code></em>);</pre>
<p>
Returns a string representation of <em class="parameter"><code>address</code></em> in standard dots format (like
"192.168.0.1" or "::1").
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>address</code></em> :</span></p></td>
<td>A <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a>.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A newly-allocated string. Free with <a href="http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-free"><code class="function">g_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="inf_ip_address_collate ()">
<a name="inf-ip-address-collate"></a><h3>inf_ip_address_collate ()</h3>
<pre class="programlisting"><a href="/usr/share/gtk-doc/html/gnutls/gnutls-crypto.html#int"><span class="returnvalue">int</span></a>                 inf_ip_address_collate              (<em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address1</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="libinfinity-0.4-InfIpAddress.html#InfIpAddress" title="InfIpAddress"><span class="type">InfIpAddress</span></a> *address2</code></em>);</pre>
<p>
Compares the two addresses for sorting.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>address1</code></em> :</span></p></td>
<td>First address.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>address2</code></em> :</span></p></td>
<td>Second address.
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> -1 if <em class="parameter"><code>address1</code></em> compares before, 0 if it compares equal or
1 if it compares after <em class="parameter"><code>address</code></em>.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" title="See Also">
<a name="libinfinity-0.4-InfIpAddress.see-also"></a><h2>See Also</h2>
<a class="link" href="InfTcpConnection.html" title="InfTcpConnection"><span class="type">InfTcpConnection</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>